const bt = require("./bt.js");

const predorder = (node) => {
  if (!node) {
    return;
  }
  console.log(node.value);
  predorder(node.left);
  predorder(node.right);
};

predorder(bt);
